package com.wx.service.client.agentconfig.web;

import com.wx.service.client.agentconfig.service.IWxAgentConfigService;
import com.wx.service.client.agentconfig.vo.WxAgentConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class AgentConfigController {

  @Autowired
  private IWxAgentConfigService wxAgentConfigService;

  @ResponseBody
  @RequestMapping(value = "/wx-agent-config", method = RequestMethod.GET)
  public WxAgentConfig getWxAgentConfig(@RequestParam String url) {
    return wxAgentConfigService.getWxAgentConfig(url);
  }
}
